<template>
  <div>
    <table align="center">
        <tr>
            <th>姓名</th>
            <th>手机号</th>
            <th>邮箱</th>
        </tr>

        <tr v-for="(user, index) in user_list" :key="index">
            <td>&emsp;&emsp;&nbsp;{{user.username}}</td>
            <td>&emsp;{{user.phone}}</td>
            <td>&emsp;{{user.email}}</td>
        </tr>
    </table>

  </div>
</template>

<script>
export default {
    data() {
        return {
            user_list:[],
            username:localStorage.getItem('username')
        }
    },

    mounted:function(){
        this.axios.get('http://localhost:8000/login2').then(res=>{
            console.log(res.data)
            this.user_list = res.data
        })
    },

    methods:{
    
    }
}        
</script>

<style>

</style>